package com.example.dto;


import java.util.ArrayList;
import java.util.List;

/***
 *
 * 刷新的bean屬性
 */
public class RefreshBean {

    private Class beanClass;

    private String beanName;

    private Object beanVal;

    private List<RefreshField> fields = new ArrayList<>();

    public Class getBeanClass() {
        return beanClass;
    }

    public void setBeanClass(Class beanClass) {
        this.beanClass = beanClass;
    }

    public String getBeanName() {
        return beanName;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    public Object getBeanVal() {
        return beanVal;
    }

    public void setBeanVal(Object beanVal) {
        this.beanVal = beanVal;
    }

    public List<RefreshField> getFields() {
        return fields;
    }

    public void setFields(List<RefreshField> fields) {
        this.fields = fields;
    }

    public RefreshBean(String beanName, Object beanVal) {
        this.beanName = beanName;
        this.beanVal = beanVal;
        this.beanClass = beanVal.getClass();
    }
}
